package com.tamtamy.jtta.data.json;

import net.sf.json.JSONObject;

import com.tamtamy.jtta.data.Comment;
import com.tamtamy.jtta.utility.JSONUtility;

public class JSONComment extends Comment{

	public JSONComment(JSONObject jsonObject){
		super();
		this.id = JSONUtility.getLong(jsonObject,"id");
		this.contentId = JSONUtility.getLong(jsonObject,"contentId");
		this.user = JSONUtility.getString(jsonObject,"user");
		this.creationDate = JSONUtility.getDate(jsonObject,"creationDate");
		this.comment = JSONUtility.getString(jsonObject,"comment");
		this.commentPlainText = JSONUtility.getString(jsonObject,"commentPlainText");
		this.permalink = JSONUtility.getString(jsonObject,"permalink");
	}

}
